﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace ProductStore.Models
{
    public interface IEntityRepository<T>
        where T : class, new()
    {
        IQueryable<T> GetAll();

        void InsertOnCommit(T entity);
        void DeleteOnCommit(T entity);

        T Get(int key);

        void CommitChanges();
    }
}
